package com.yh.homestay.service;

import com.yh.homestay.common.HomeStayResult;
import com.yh.homestay.common.OwnerEditResult;
import com.yh.homestay.pojo.UserOwner;

import java.util.List;


public interface UserOwnerService {
        HomeStayResult selectAll(String ownerName, Integer page, Integer limit);
        HomeStayResult addOwner(UserOwner userOwner);
        HomeStayResult delete(Integer id);
        HomeStayResult update(Integer id, String ownerName, String ownerPhone, String ownerPhoto, String ownerIdcardA, String ownerIdcardB, String ownerRoomIds);
        OwnerEditResult selectOne(Integer id);
//        ResultMessage selectByName(String ownerName);
        HomeStayResult delectAll(List<Integer> ids);

}
